﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Engine.Transactions.*;
    import Modules.stats.experiments.*;
    import Modules.stats.trackers.*;
    import flash.external.*;

    public class TAutoPopZMC extends Transaction {

        override public function perform():void{
            signedCall("UserService.getZEventCount");
        }
        override protected function onComplete(_arg1:Object):void{
            var _local2:int = Global.experimentManager.getVariant(ExperimentDefinitions.EXPERIMENT_POPUP_ZMC_EARLY);
            if (_local2 == ExperimentDefinitions.POPUP_ZMC_NORMAL){
                if (_arg1.count > 0){
                    Global.zmcOpenedOnInit = true;
                    ExternalInterface.call("openZMC");
                } else {
                    StartupSessionTracker.interactive();
                };
            };
        }

    }
}//package Transactions 
